package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2022-05-28
 * Time: 18:33
 */
abstract public class User {
    protected String name;
    protected IOperation[] operations;
    public abstract int menu();
    public void doOperation(int choice, BookList books) {
        operations[choice].work(books);
    }
    public User(String name) {
        this.name = name;
    }
}
